package com.wl.resultcore;

/**
 * @Description 项目常量
 **/
public final class ProjectConstant {
    public static String REDISKEY = "";

    public static final String BASE_PACKAGE = "com.anshare.project";//生成代码所在的基础包名称，可根据自己公司的项目修改（注意：这个配置修改之后需要手工修改src目录项目默认的包路径，使其保持一致，不然会找不到类）

    public static final String MODEL_PACKAGE = BASE_PACKAGE + ".model";//生成的Model所在包
    public static final String MAPPER_PACKAGE = BASE_PACKAGE + ".dao";//生成的Mapper所在包
    public static final String SERVICE_PACKAGE = BASE_PACKAGE + ".service";//生成的Service所在包
    public static final String SERVICE_IMPL_PACKAGE = SERVICE_PACKAGE + ".impl";//生成的ServiceImpl所在包
    public static final String CONTROLLER_PACKAGE = BASE_PACKAGE + ".controller";//生成的Controller所在包

    public static final String MAPPER_INTERFACE_REFERENCE = BASE_PACKAGE + ".core.Mapper";//Mapper插件基础接口的完全限定名

    //分页常量设置
    public static final String PAGE_INDEX = "0";//当前页默认值
    public static final String PAGE_SIZE = "0";//页数大小默认值

    //响应code常量设置
    public static final int USER_UP_PASSWORD = 208;//用户密码过期
    public static final int USER_UP_ORIGNPASSWORD = 209;//用户密码过期
    public static final int ACCESS_INVALID = 210; //权限不足
    public static final int SERVICE_INVALID = 500; //服务器异常
    public static final int TOKEN_INVALID = 600; //Token失效
    public static final int URL_INVALID = 601;//URL不存在
    public static final int PARM_INVALID = 602;//参数异常信息
    public static final int PARM_TEST = 10001;//系统专用测试参数
    public static final int IMPORT_FAIL = 603;//数据导入失败
    public static final int GET_COLUMN_FAIL = 604;//获取数据库字段失败
    public static final int ERROR_FILE_FORMAT = 605;//导入文件类型错误



    //用户登录信息常量设置
    public static final int USER_OR_PASSWORD_INVALID = 800;//用户名或密码错误
    public static final int USER_NO_ROLE = 801;//该用户未绑定角色
    public static final int USER_NO_VAILD = 802;//单点登陆校验不正确
    public static final int REDIS_INVALID = 803;//Redis异常
    public static final int USER_LOCKED = 804;//用户被锁定
    public static final int USER_IP_MAC = 805;//用户地址不对

    //word 转 pdf常量设置
    public static Integer SuccessStatus=0;        //状态:成功
    public static Integer FailStatus=1;           //状态:失败
    public static String DocToPDF="DocToPDF";
    public static String DocToDocx="DocToDocx";
    public static String DocToTexT="DocToTexT";
    public static String DocToXps="DocToXps";
    public static String HtmlToDoc="HtmlToDoc";
    public static String DocToJPEG="DocToJPEG";
    public static String DocxToPDF="DocxToPDF";
    public static String ExcelToPDF="ExcelToPDF";

    //导出word常量设置
    public static String WORD_DOCX=".docx";
    public static String TEMPLATE_LOCAL="wordtemplates/";//廉情报告模板存放位置（src\main\resources\wordtemplates）
    public static String TEMPLATE_REPORT="report.docx";//廉情报告模板


    //字典常量设置
    public static String ZC="zc";//职称
    public static String XB="xb";//性别
    public static String MZ="mz";//民族
    public static String HYXZ="hyxz";//婚姻现状
    public static String WHCD="whcd";//文化程度
    public static String ZZMM="zzmm";//政治面貌
    public static String DWXZ="dwxz";//单位性质
    public static String RYZT="ryzt";//人员状态

    //部门权限
    public static String Parent_ID="0";//最高级

    //是否缓存
    public static final int CasheY = 0; //缓存
    public static final int CasheN = 1; //不缓存

}
